#include <iostream>
using namespace std;

class Test {
  public:
    Test(int n) : num(n) { count++; }

    ~Test() {}

    void Print() const;

    static int GetCount() { return count; }

  private:
    int num;
    static int count;
};

int Test::count = 0;

void Test::Print() const { cout << this->num << "  " << this->count << "  "; }

int main() {
    Test oTest1(6);
    oTest1.Print();

    Test oTest2(8);
    oTest2.Print();

    cout << Test::GetCount();
    cout << endl;

    return 0;
}
